// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false

// 引入的elementUi
// 1.引入element-ui
import ElementUI from 'element-ui';
// 2.使用element-ui的全局样式
import 'element-ui/lib/theme-chalk/index.css';
// 3.让Vue实例使用ElementUi
Vue.use(ElementUI);


// 引入user列表对应的Mock.js
// import MockUser from "./js/user.js";


// 全局引入Axios
import axios from "axios";
// 配置Axios请求的公共路径
axios.defaults.baseURL = "https://www.fastmock.site/mock/439f9009a7c7a2ab9916fc3f7159d3cc/pethome";
// 将axios对象复制给我们扩展的$http对象
Vue.prototype.$http = axios;



/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
